package com.ycc.springcloud.controller;

import com.ycc.springcloud.service.EmailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class EmailController {
    @Autowired
    private EmailService emailService;

    //响应发送的反馈
    @RequestMapping("/email")
    public  String email(@RequestParam("msg") String msg) {
        emailService.Send(msg);
        return "sendSucceed";
    }
}
